package com.dmlll.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 采购单药品明细
 * </p>
 *
 * @author dmLll
 * @since 2021-03-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PurchaseDrupDetail implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 采购单id
     */
    private Integer purchaseId;
    @TableField(exist = false)
    private Purchase purchase;
    /**
     * 药品信息id
     */
    private Integer drugMessageId;
    @TableField(exist = false)
    private DrugMessage drugMessage;
    @TableField(exist = false)
    private HospitalPurchaseInput input;
    @TableField(exist = false)
    private HospitalOutputDetail output;
    @TableField(exist = false)
    private HospitalCloseDetail close;
    /**
     * 供货企业id
     */
    private Integer providerId;
    @TableField(exist = false)
    private Provider provider;


    /**
     * 中标价
     */
    private Double winPrice;

    /**
     * 交易价格
     */
    private Double trading;

    /**
     * 采购数量
     */
    private Integer purchaseAmount;

    /**
     * 采购价格
     */
    private Double purchasePrice;

    /**
     * 采购状态  （1、未确认送货  2、已发货、3、已入库 4无法供货 5到期未供货1、未确认送货  2、已发货、3、已入库 4无法供货 5到期未供货）
     */
    private Integer purchaseState;


}
